put the value of ((card field f2 + card field f3 + card field f4 + card field f5)) into sum
put the value of (((card field f2 + card field f3) * (card field f2 + card field f4) * (card field f4 + card field f5) * ( card field f3 + card field f5))) into denom
set numberFormat to "000.00"
put the value of ((((abs(( card field f2 * card field f5) - (card field f3 * card field f4)) - ( 0.5 * sum))^2 ) * sum)/ denom) into card field f6
end mouseUp
-- part 10 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=144 top=314 right=336 bottom=244
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: TWIN STUDIES
----- HyperTalk script -----
on mouseUp
go to card id 60673
end mouseUp
-- part contents for background part 1
----- text -----
CONTINGENCY CHI-SQUARE
-- part contents for background part 2
----- text -----
At times it is desirable to compare two sets of data taken at different times under different conditions. Whenever this is done, one must concern oneself with whether the observed results are dependent
(contingent upon) or independent of the different conditions under which they were observed. In genetics, this boils down to how independent the observations were of environmental conditions. To test this relationship, a contingency chi-square is employed. In this set-up two different exercises are examined. Enter the data for each trial in the appropriate boxes and click on the RUN button. The program will compute the contingency chi-square. If it is less than 3.84, then the data classes are independent of external influences or forces. In other words, they are independent of experimental conditions including the influences of diffrent genotypes. In the twin studies, if the chi-square is more than 3.84, the effect is controlled, at least in part, by a genetic component.The degree to which the genetic component is able to effect a particular phenotype is a function of the environment. Therefore, some genetic influences will produce very large chi square values when they are able to exert their influence unopposed over the phenotype. If the environment modifies such influence, it will reduce the chi-square accordingly.